package com.two.service.permission.controller;


import com.two.common.util.CommonResult;
import com.two.service.permission.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/permission/permission")
public class RoleController {
    @Autowired
    private IRoleService roleService;

    @PostMapping("/selectAll")
    public CommonResult findRole(){
        return  roleService.selectAll();
    }
}
